const data = {
    value:'',
    list: []
}

export default (state = data, action) => {
    const newState = JSON.parse(JSON.stringify(state));
    console.log(state,action);
    // console.log(1);
    switch (action.type) {
        case 'CHANGE_VALUE':
            newState.value = action.value;
            return newState;
    }
    return state;
}